package com.lean.android.ad.repository.model

import com.lean.android.ad.repository.localcache.AdSwitchCache
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

@Serializable
data class AdSwitchInfo(
    @SerialName("isCompliance") val isCompliance: Boolean,
    @SerialName("adSwitch") val adSwitch: Boolean
) {
    fun save() {
        AdSwitchCache.isCompliance = isCompliance
        AdSwitchCache.adSwitch = adSwitch
    }
}
